# Tornado配置
SETTINGS = {
    'cookie_secret': 'N2FmYWUyYjMtMDNhMy01YzdiLTliMDItZWEyYzgxMDRmZTEz',
    # 生成方式 base64.b64encode(str(uuid.uuid5(uuid.NAMESPACE_DNS, str(uuid.uuid4()))).encode('utf-8')).decode('utf-8')
    'sentry_dsn': None,
}

# MySQL配置
MYSQL_SETTINGS = {
    "DEVELOP": {
        'host': 'rm-2ze33fuactgx09184oo.mysql.rds.aliyuncs.com',
        'port': 3306,
        'user': 'root',
        'password': 'Yuanjia2018',
        'database': 'ai_community_develop',
        'charset': 'utf8mb4'
    },

    "PRODUCT": {
        'host': 'rm-2ze33fuactgx09184oo.mysql.rds.aliyuncs.com',
        'port': 3306,
        'user': 'root',
        'password': 'Yuanjia2018',
        'database': 'ai_community_v4',
        'charset': 'utf8mb4'
    }
}

# 网站配置
SITE_SETTINGS = {
    'default_avatar': 'http://zero-key.oss-cn-beijing.aliyuncs.com/admin-media/default_avatar.png',
    'default_corp_logo': 'http://zero-key.oss-cn-beijing.aliyuncs.com/admin-media/default_logo.png',
    'admin_domain': 'localhost'
}

# ID加密
HASH_ID_SETTINGS = {
    'salt': 'u#$CE@PjJbEjV#Cu5eh85Vw3fcgJ^Jx$'
}

# 阿里云OSS2配置
OSS2_SETTINGS = {
    'domain': 'http://ai-community.oss-cn-beijing.aliyuncs.com/',
    'endpoint': 'http://oss-cn-beijing.aliyuncs.com',
    'access_key_id': 'LTAIMlj4UXTdI427',
    'access_key_secret': 'eRNZsINDX46wI5AsXv9wCKMeJlzRAD',
    'bucket_name': 'ai-community'
}

# oss Config

# 对象存储OSS参数
OSSConfig = {
    'OSS_TEST_ACCESS_KEY_ID': 'LTAIMlj4UXTdI427',
    'OSS_TEST_ACCESS_KEY_SECRET': 'eRNZsINDX46wI5AsXv9wCKMeJlzRAD',
    'OSS_TEST_BUCKET': 'ai-community',
    'OSS_TEST_ENDPOINT': 'oss-cn-beijing.aliyuncs.com',
    'OSS_HOST': 'ai-community.oss-cn-beijing.aliyuncs.com',
}

# 对象存储路径
OSSPath = {
    'picture': '/data/app/picture/',
    'text': '/data/app/documents/'
}

# UPSTREAM = {
#     'p_domain': 'http://192.168.1.155:5005',  # 物业
#     'law_domain': 'http://192.168.1.125:5003',  # 律师
#     'indus_domain': 'http://192.168.1.102:1992',  # 业委会
# }
UPSTREAM = {
    'p_domain': 'http://127.0.0.1:5005',  # 物业
    'law_domain': 'http://127.0.0.1:8111',  # 律师
    'indus_domain': 'http://39.106.101.198:8115',  # 业委会
}

type_dict = {
    1: "law_domain",
    2: "p_domain",
    3: "indus_domain",
    4: "group"
}
